<!--#include file="./doctype.html"-->
<title><%=editTitle%>内容链接-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload"><%=editTitle%></a></li>
	</ol>
    <div class="alert alert-success">
        <span class="close" data-dismiss="alert">&times;</span>
        <strong>内容链接关键词：</strong>要替换的内容包括：文章、产品、留言、简介
    </div>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
        <input type="hidden" name="id" value="<%=iid%>">
        <div class="form-group fix">
            <input id="linkName" name="linkName" class="form-control inline w30 check_value" placeholder="关键词" value="<%=app.hec(data(0))%>" />
            <label class="inline control-label" for="linkName">关键词</label>
        </div>
        <div class="form-group fix">
            <input id="linkAddr" name="linkAddr" class="form-control inline w30 check_value" placeholder="链接地址" value="<%=app.hec(data(1))%>" />
            <label class="inline control-label" for="linkAddr">链接地址(必须以“http://”或者“/”开头)</label>
        </div>
        <div class="form-group fix">
            <input id="linkNumber" name="linkNumber" class="form-control inline w30" placeholder="替换次数" value="<%=data(2)%>" />
            <label class="inline control-label" for="linkNumber">替换次数(-1或大于0)(-1 为全部替换，不可为0)</label>
        </div>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
	$('.check_value').checkEmpty();
$(this)
	.on('submit', 'form', function(){
		return $.submitForm('.check_value');
	})
})
</script>
</body>
</html>